import axios from '../axios'
export default {
  //获取所有理赔信息
  getClaims(params) {
    return axios({
      url: '/claims/getClaims',
      method: 'post',
      data: params
    })
  },

  //根据state获取理赔
  getClaimsByState(params) {
    return axios({
      url: '/claims/getClaimsByState',
      method: 'post',
      data: params
    })
  },
  //通过id获取审核订单
  getClaimsById(params) {
    return axios({
      url: '/claims/getClaimsById',
      method: 'post',
      data: params
    })
  },
  addClaims(params) {
    return axios({
      url: '/claims/addClaims',
      method: 'post',
      data: params
    })
  },
  changeClaims(params) {
    return axios({
      url: '/claims/changeClaims',
      method: 'post',
      data: params
    })
  },
  //删除
  deleteClaims(params) {
    return axios({
      url: '/claims/deleteClaims',
      method: 'post',
      data: params
    })
  },
  //搜索
  searchClaims(params) {
    return axios({
      url: '/claims/searchClaims',
      method: 'post',
      data: params
    })
  },
  //根据销售员id获取
  getClaimsBySalesMen(params) {
    return axios({
      url: '/claims/getClaimsBySalesMen',
      method: 'post',
      data: params
    })
  }
}